package com.lunivore.gameoflife.stories;


import org.jbehave.core.configuration.Configuration;
import org.jbehave.core.configuration.MostUsefulConfiguration;
import org.jbehave.core.io.LoadFromClasspath;
import org.jbehave.core.reporters.Format;
import org.jbehave.core.reporters.StoryReporterBuilder;

import com.lunivore.gameoflife.GridStory;
import com.lunivore.gameoflife.steps.GridSteps;

public class ICanToggleACell extends GridStory {


   @Override
    public Configuration configuration() {
        return new MostUsefulConfiguration()
            // where to find the stories
            .useStoryLoader(new LoadFromClasspath(this.getClass()))  
            // CONSOLE and TXT reporting
            .useStoryReporterBuilder(new StoryReporterBuilder().withDefaultFormats().withFormats(Format.CONSOLE, Format.HTML)); 
    }

   @Override
	public Object[] useSteps() {
		Object[] steps = {new GridSteps()};
		return  steps;
	}

}
